
INC	:= inc
OBJDIR	:= obj
SCRIPTS	:= scripts
SRC	:= .

OBJDIRS :=
SRCS :=
HDRS :=
all: kern-bin

include inc/Rules.mk
include boot/Rules.mk
include kern/Rules.mk
include lib/Rules.mk
include user/Rules.mk

tags: $(SRCS) $(HDRS)
	$(CTAGS) $(SRCS) $(HDRS)

qemu: tags $(OBJDIR)/kern/kernel.bin
	$(QEMU) -kernel $(OBJDIR)/kern/kernel.bin

qemu.floppy: tags $(OBJDIR)/kern/kernel.floppy
	$(QEMU) -fda $(OBJDIR)/kern/kernel.floppy

qemu.hda: tags $(OBJDIR)/kern/kernel.harddisk
	$(QEMU) -hda $(OBJDIR)/kern/kernel.harddisk

qemu.hda-gdb: tags $(OBJDIR)/kern/kernel.harddisk .gdbinit
	$(QEMU) -S -s -hda $(OBJDIR)/kern/kernel.harddisk
clean:
	rm -rf $(OBJDIR) tags kern/vectors.S kern/pgdir.S


